﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AutoBuildVersion
{
    public static class Extension
    {

        public static bool IsNullOrEmpty(this object str)
        {
            if (str == null) return true;
            return String.IsNullOrEmpty(str.ToString().Trim());
        }

        public static bool IsNotNullOrEmpty(this object str)
        {
            if (str == null) return false;
            return !String.IsNullOrEmpty(str.ToString().Trim());
        }
    }
}
